package com.laihuichuxing.carpool.dao;


import com.laihuichuxing.order.carpool.entity.PassengerStrokeEntity;

/**
 * @author YangGuang
 * @program: order-server
 * @description:
 * @create: 2018-11-19 18:07
 **/
public interface CarpoolPassengerStrokeDao {

    /**
     * Description: 判断是否存在进行中行程
     *
     * @param userId 用户id
     * @return int
     * @author YangGuang
     * Create Date Time: 2018/11/19 18:11
     * Update Date Time:
     */
    int judgeExistStroke(String userId);

    /**
     * Description: 插入行程
     *
     * @param passengerStrokeEntity 乘客行程entity
     * @return int
     * @author YangGuang
     * Create Date Time: 2018/11/20 9:49
     * Update Date Time:
     */
    int insert(PassengerStrokeEntity passengerStrokeEntity);
}
